package org.example.yiyu.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginResponse {
    private int status;
    private String msg;
    private String token;

    public static LoginResponse success(String token)
    {
        return new LoginResponse(1,"登录或注册成功",token);
    }

    public static LoginResponse error()
    {
        return new LoginResponse(0,"密码错误",null);
    }
}
